#pragma once


// CCtrlEdit

class AFX_EXT_CLASS CCtrlEdit : public CEdit
{
	DECLARE_DYNAMIC(CCtrlEdit)

private:
	COLORREF	m_clrBkgnd;
	COLORREF	m_clrText;
	CBrush		m_brBkgnd;

	BOOL		m_bNumber;

public:
	CCtrlEdit();
	virtual ~CCtrlEdit();

protected:
	afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	DECLARE_MESSAGE_MAP()

public:		
	void SetNumber(BOOL bNumber);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
};


